window.phoenix&&(window.phoenix.buildInfo||(window.phoenix.buildInfo=[]),-1===window.phoenix.buildInfo.findIndex((e=>"Phoenix-analytics"===e.MFE))&&window.phoenix.buildInfo.push({MFE:"Phoenix-analytics",VERSION:"rc-phoenix-analytics-1.1.5204.1362292122-f8dc1da7-2-gf9e98be",LASTCOMMITDATETIME:"2024-07-08T22:23:44+00:00"})) /*! * * ============= BUILD INFO ============= * MFE: Phoenix-analytics * chunkName: vendor-clientlibs/webvitals/webvitals * VERSION: rc-phoenix-analytics-1.1.5204.1362292122-f8dc1da7-2-gf9e98be * BRANCH: HEAD * COMMITHASH: f9e98bed7c88b3cddab27239099ccc0d87adce42 * LASTCOMMITDATETIME: 2024-07-08T22:23:44+00:00 * ============= If you're reading this, why not come work with us? https://www.t-mobile.com/careers ============= */,function(){"use strict";!function(e){let t=[],n=!1,a=!0,i={};const o={"needs-improvement":"ni"},r=!(!URLSearchParams||!new URLSearchParams(e.location.search).get("gtm_debug")),d={GA4:{tagMap:[{domain:".metrobyt-mobile.com",id:{PROD:"G-HKXL8DW2E9",NPE:"G-W6XVWEMKS0"}},{domains:[".t-mobile.com",".t-mobilemoney.com"],id:{PROD:"G-SK38WR4SG9",NPE:"G-VKH047RCXH"}}],dataMap:{id:"metric_id",debug_event:"debug_event",debug_target:"debug_target",debug_timing:"debug_timing",metric_rating:"metric_rating",delta:"metric_delta",debug_attributes:"debug_attributes",event_time:"metric_timing",nav_type:"nav_type"}}},s=(t,n=e.location.hostname)=>{const a=`${t}|${n}`;return i[a]||(i[a]=d[t]?.tagMap?.find((e=>e.domain?n.endsWith(e.domain):e.domains.some((e=>n.endsWith(e)))))),i[a]},c=(t,n=e.location.hostname,a=e.digitalData)=>{const i=s(t,n);return i?.id?.[u(a)]||i?.id},u=e=>a?(e?.envData?.environment&&!e.envData.environment.toLowerCase().startsWith("prod")&&(a=!1),a?"PROD":"NPE"):"NPE",g=()=>{var a;n||(e.dataLayer??=[],e.gtag??=function(){e.dataLayer.push(arguments),t.push({info:{type:"DEFERRED",details:arguments}})},"1"===((a="dnt")&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null)&&e.gtag("set","allow_ad_personalization_signals",!1),!e.dataLayer.find((e=>!!e&&"js"===e[0]))&&e.gtag("js",new Date),e.gtag("set",{transport_type:"beacon"}),Object.keys(d).forEach((t=>{const n=c(t);n&&!e.dataLayer.find((e=>!!e&&"config"===e[0]&&e[1]===n))&&e.gtag("config",n,{send_page_view:!1,...(s(t)||{}).option||{}})})),n=!0)},l=n=>{g(),n.metric_rating=o[n.metric_rating]||n.metric_rating,Object.keys(d).forEach((a=>{const i={...Object.entries(n).filter((([e,t])=>!!d[a].dataMap[e])).reduce(((e,[t,n])=>(e[d[a].dataMap[t]]=n,e)),{}),event_category:"Web Vitals",non_interaction:!0,transport_type:"beacon",value:n.value&&"CLS"===n.name&&d[a].clsRounding?Math.round(1e3*n.value):n.value,send_to:c(a),...r?{debug_mode:r}:{}};e.gtag("event",n.name,i),t.push({info:{type:"SENT",details:{timestamp:new Date(Date.now()).toLocaleTimeString(),page:location.href,account:i.send_to,type:"event",name:n.name,data:i}}})}))};e.addEventListener("TMOWebVitals",(e=>l(e.detail.data)),!1),e.ta??={},e.ta.webVitals??={},e.ta.webVitals.subscriber={logs:t,config:d,track:l},e.ta.webVitals.report=()=>{console.group("%cT-MOBILE WEB-VITALS REPORT","font-size: large; font-weight: bold;"),console.table(e.ta.webVitals.subscriber.logs.filter((e=>"SENT"===e.info.type)).map((e=>({...e.info.details,...e.info.details.data}))),["timestamp","name","account","page","value","metric_rating","nav_type","metric_timing","debug_target","debug_timing","debug_event","debug_attributes"]),console.groupEnd()}}(window),function(e,t){const n=[],a="(not set)",i={libUrl:"//unpkg.com/web-vitals@4.2.0/dist/web-vitals.attribution.iife.js"},o=(e,t=100)=>{const n=e?.node;if(n?.nodeType&&9!==n?.nodeType){let i=(n.textContent||n.alt||a).trim(),o=[n.nodeName||n.tagName||a];return e.previousRect instanceof DOMRectReadOnly&&e.currentRect instanceof DOMRectReadOnly&&o.push(((e,t)=>{let n=[];for(let a in e)e[a]!==t[a]&&n.push(a+":"+e[a]+"~"+t[a]);return n})(e.previousRect,e.currentRect)),i&&o.push(i),o.join("|").substring(0,t)}return a},r=(e,t)=>{switch(e){case"CLS":return{debug_target:t.largestShiftTarget??a,debug_attributes:o(t.largestShiftSource),event_time:t.largestShiftTime};case"FID":return{debug_target:t.eventTarget??a,debug_event:t.eventType,event_time:+t.eventTime?.toFixed()??0};case"INP":return{debug_target:t.interactionTarget??a,debug_event:t.interactionType,event_time:+t.interactionTime?.toFixed()??0};case"LCP":return{debug_target:t.url||t.element||a,debug_timing:["TTFB="+t.timeToFirstByte?.toFixed()??0,"RLD="+t.resourceLoadDelay?.toFixed()??0,"RLT="+t.resourceLoadDuration?.toFixed()??0,"ERD="+t.elementRenderDelay?.toFixed()??0].join("&"),event_time:+(t.lcpEntry?.startTime??+[t.timeToFirstByte,t.resourceLoadDelay,t.resourceLoadDuration,t.elementRenderDelay].reduce(((e,t)=>e+(t??0)),0)).toFixed()};case"FCP":return{event_time:+t.firstByteToFCP?.toFixed()??0};case"TTFB":return{debug_timing:["WT="+t.waitingDuration?.toFixed(1)??0,"DNS="+t.dnsDuration?.toFixed(1)??0,"CT="+t.connectionDuration?.toFixed(1)??0,"RQT="+t.requestDuration?.toFixed(1)??0,"CD="+t.cacheDuration?.toFixed(1)??0].join("|"),event_time:+t.requestDuration?.toFixed(1)??0}}},d=({name:t,delta:i,value:o,id:d,attribution:s,rating:c,navigationType:u})=>{const g={name:t,delta:i,id:d,value:o,metric_rating:c,nav_type:u,debug_target:a,debug_timing:s.loadState,...r(t,s)||{}};e.dispatchEvent(new e.CustomEvent("TMOWebVitals",{detail:{data:g}})),n.push({info:{details:g,debug:s,url:e.location.href}})},s=(e,n)=>{const a="script",i=t.createElement(a),o=t.getElementsByTagName(a)[0].parentNode,r=((e,n)=>{let a=t.getElementById(encodeURI(e));return a||(a=Array.from(t.getElementsByTagName(n)).find((t=>!!t.src&&(e===t.src||e===(t.src&&t.src.substring(t.src.indexOf("//"))||""))))),a})(e,a);if(r)return n();i.type="text/javascript",i.async=!0,i.id=encodeURI(e),i.addEventListener("load",n,!1),i.src=e,o&&o.insertBefore(i,o.firstChild)};e.ta??={},e.ta.webVitals??={},(e.ta.webVitals.publisher={config:i,logs:n,track:()=>{s(i.libUrl,(()=>e.webVitals&&(["CLS","FID","LCP","FCP","TTFB","INP"].forEach((t=>e.webVitals["on"+t](d))),1)||n.push({error:{message:"failed loading",details:i,url:location.href}})))}}).track()}(window,document)}();